<?php
	include("includes/connect_db.php");
    $id_host = $_POST['id_host'];
    $aksi = $_GET['aksi'];

    switch ($aksi) {
    	case '1':
    			$sql_hapus_host= "DELETE FROM tb_host WHERE id_host = '$id_host'";
    			$query_hapus_host = mysql_query($sql_hapus_host);
				if($query_hapus_host){
					echo "sukses";
				}
    		break;

    	case '2':
    			
    		break;

    	case '3':
    			
    		break;
    }
?>